package com.springcloud.service.impl;

import com.baomidou.mybatisplus.core.conditions.query.QueryWrapper;
import com.baomidou.mybatisplus.extension.service.impl.ServiceImpl;
import com.springcloud.dao.BinNoInfoDao;
import com.springcloud.model.BinNoPosModel;
import com.springcloud.service.BinNoInfoService;
import org.springframework.stereotype.Service;

import javax.annotation.Resource;
import java.util.List;

@Service
public class BinNoInfoServiceImpl extends ServiceImpl<BinNoInfoDao,BinNoPosModel>implements BinNoInfoService {
    @Resource
    BinNoInfoDao binnoDao;

    @Override
    public List<BinNoPosModel> getAllBinNO() {
        if (binnoDao == null) return null;
        QueryWrapper<BinNoPosModel> queryWrapper=new QueryWrapper<>();
        return binnoDao.selectList(queryWrapper);
    }
}
